#ifndef ___MAP_MGR_H___
#define ___MAP_MGR_H___

class CMapGrid;
class CMapNpc;
class CMap;

class CMapMgr
{
public:
	typedef boost::unordered_map<U32, CMap*>	MapList;
	CMapMgr();
	~CMapMgr();

	void addMap( U32 map_id );
	CMap *getMapById( UINT map_id );
protected:
	MapList			m_mapList;
};

//-----------------------------------------------------------------------------------------------------------
class CResourceMgr
{
	SINGLETON_CLASS( CResourceMgr )
protected:
	CResourceMgr();
	~CResourceMgr();

public:
	void Init();
	CMap* getMap(UINT map_id);
protected:
	CMapMgr*		m_mapMgr;
};

#endif//___MAP_MGR_H___